Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lab view URL #173

Merged
merged 4 commits into from
Feb 26, 2024
Merged

Conversation

DanielSchiavini
Copy link
Collaborator

What I did

  • Fixed callback URL when opening in lab view, i.e. https://try.vyperlang.org/user/{user}/lab/workspaces/auto-L/tree/{file}.ipynb instead of the notebook URL https://try.vyperlang.org/user/{user}/notebooks/{file}.ipynb

How I did it

  • Check if we are in lab view, if so recurse 3 directories
  • Added async to rpc so the exception is displayed properly

How to verify it

  • Open the notebook in the 2 views mentioned, it should work the same.

Description for the changelog

  • Fixed jupyter plugin lab view

Cute Animal Picture

image

@DanielSchiavini DanielSchiavini marked this pull request as ready for review February 26, 2024 16:09
@@ -3,14 +3,17 @@
* BrowserSigner to the frontend.
*/
(() => {
const rpc = (method, params) => {
const rpc = async (method, params) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The async here makes sure the error raises a rejected promise instead of completely failing

@charles-cooper
Copy link
Member

please fix some lint issue and then i can merge -- https://github.com/vyperlang/titanoboa/actions/runs/8051752665/job/21990356973?pr=173

@charles-cooper charles-cooper merged commit 34412a7 into vyperlang:master Feb 26, 2024
3 of 4 checks passed
@DanielSchiavini DanielSchiavini deleted the jupyter-fix branch February 26, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants